﻿<UserControl x:Class="CoolCode.UI.ControlPanel"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"          
             xmlns:cc="clr-namespace:CoolCode.Controls;assembly=CoolCode.Controls"
             xmlns:local="clr-namespace:CoolCode.UI">
    <UserControl.Resources  >
        <Style x:Key="grdHeader" TargetType="Grid">
            <Setter Property="Height" Value="26"></Setter>
            <Setter Property="Background" >
                <Setter.Value>
                    <LinearGradientBrush Opacity="0.8" EndPoint="0,0.9" StartPoint="0,0.1">
                        <GradientStop Color="LightBlue"  Offset="0.0"/>
                        <GradientStop Color="#FF494990"  Offset="0.375"/>
                        <GradientStop Color="DarkBlue" Offset="0.7"  />
                    <!--<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFA3AEB9" Offset="0"/>
                        <GradientStop Color="#FF8399A9" Offset="0.375"/>
                        <GradientStop Color="#FF718597" Offset="0.375"/>
                        <GradientStop Color="#FF617584" Offset="1"/>-->
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
        </Style>

    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid Background="#dfe8f6"   >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid Grid.ColumnSpan="2" Height="35" Style="{StaticResource grdHeader}">
                <Grid >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="300"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Border CornerRadius="3" Height="33" BorderBrush="#8db2e3" Margin="8,0,0,0" BorderThickness="1,1,1,1" HorizontalAlignment="Left" >
                        <TextBlock Margin="8,1,1,1" VerticalAlignment="Top" x:Name="HeaderTitle" FontSize="20" Foreground="Bisque">Title</TextBlock>
                    </Border>
                    <!--Banners-->
                    <Border Grid.Column="2" CornerRadius="3" Height="33" BorderBrush="#8db2e3" Margin="2,0,8,0" BorderThickness="1,1,1,1"  HorizontalAlignment="Right" >
                        <HyperlinkButton NavigateUri="http://www.qsh.eu/" TargetName="_blank" Margin="5,0,0,0"   Height="31" HorizontalAlignment="Right" 
                                         ToolTipService.ToolTip="ASP.NET Webhosting - Quantasoft Web Hosting" >
                            <HyperlinkButton.Content>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Margin="2" FontSize="9">ADS</TextBlock>
                                    <!--<Image x:Name="imgBanner"  Source="/Images/banner.png" HorizontalAlignment="Center" />-->
                                </StackPanel>
                            </HyperlinkButton.Content>
                        </HyperlinkButton>
                    </Border>
                </Grid>
            </Grid>
            <Grid Grid.Row="2" Grid.Column="0" Margin="5">
                <Border x:Name="leftPanel" Width="200" BorderBrush="#99bbe8" BorderThickness="1">
                    <Grid  >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid Height="26" Grid.Row="0" Style="{StaticResource grdHeader}">
                            <TextBlock Margin="6" Foreground="Bisque">Menu Panel</TextBlock>
                        </Grid>
                        <Border Height="1" Grid.Row="1" Background="#99bbe8" />
                        <Grid Grid.Row="2" Background="White" x:Name="MenuPanel">

                        </Grid>
                    </Grid>
                </Border>
            </Grid>
            <Grid Grid.Row="2" Grid.Column="1" Margin="5">
                <Border x:Name="rightPanel" BorderBrush="#99bbe8" BorderThickness="1">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Grid Height="26" Grid.Row="0" Style="{StaticResource grdHeader}">
                            <TextBlock x:Name="lblUserInfo" Margin="6" Foreground="Bisque"></TextBlock>
                        </Grid>
                        <Border Height="1" Grid.Row="1" Background="#99bbe8" />
                        <ScrollViewer Grid.Row="2"  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" BorderThickness="0">
                            <Grid  x:Name="rightContent" />
                        </ScrollViewer>
                    </Grid>
                </Border>
            </Grid>
        </Grid>
        <Grid x:Name="dialogGrid">
        </Grid>
        <Grid x:Name="loadingGrid">
            <!--<cc:Loading x:Name="loading" Visibility="Collapsed"/>-->
        </Grid>
    </Grid>
</UserControl>
